import Layout from '@/layout'

const memberRouter = {
  path: '/member',
  component: Layout,
  redirect: '/member/list',
  name: 'Member',
  meta: {
    title: '人员管理',
    icon: 'peoples'
  },
  children: [
    {
      path: 'edit/:id(\\d+)',
      component: () => import('@/views/member/edit'),
      name: 'EditMember',
      meta: { title: '人员详情', noCache: true, activeMenu: '/member/list' },
      hidden: true
    },
    {
      path: 'list',
      component: () => import('@/views/member/list'),
      name: 'MemberList',
      meta: { title: '人员列表', icon: 'list' }
    },
    {
      path: 'face-list',
      component: () => import('@/views/member/face-list'),
      name: 'FaceList',
      meta: { title: '人脸库', icon: 'list' }
    }
  ]
}

export default memberRouter
